package cn.jobstart.modelExt;

import cn.jobstart.common.StringUtil;
import cn.jobstart.modelDesc.AdminJobDesc;
import lombok.Data;

import java.util.List;
import java.util.stream.Collectors;


/**
 * @author sunke
 * @Date 2023-09-06 15:00:20
 * @description AdminJobExt      员工职位
 */
@Data
public class AdminJobExt extends AdminJobDesc {

    private String companyJobTitle;
    private String companyName;



    private List<AdminJobManagerExt> managerList;

    //private List<AdminJobCandidateExt> candidateList;

    /**
     * 负责人数量
     */
    private String managerTruenames;

    public String getManagerTruenames() {
        if(StringUtil.isNotObjEmpty(managerList)){
            managerTruenames=managerList.stream().map(AdminJobManagerExt::getAdminTruename).collect(Collectors.joining("、"));
        }
        return managerTruenames;
    }
}

